package com.rw.engine.permission.exception;


import com.rw.engine.permission.interceptor.Role;
import lombok.Getter;

import java.util.List;

/**
 * 权限异常
 */
@Getter
public class PermissionException extends RuntimeException {
    private final Role role;
    private final List<String> permission;

    public PermissionException(String message, List<String> permission, Role role) {
        super(message);
        this.permission = permission;
        this.role = role;
    }
}
